<?php echo '<?xml version="1.0" encoding="UTF-8"?>';?>

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

<?php foreach($data as $k=>$v){
	echo '<url>';
	echo '<loc>'.SITE_URL.$v[$uses[0]]['url'].'</loc>';
	echo '<lastmod>'.substr($v[$uses[0]]['modified'],0,strpos($v[$uses[0]]['modified'],' ')).'</lastmod>';
	echo '<changefreq>weekly</changefreq>';
	echo '<priority>1</priority>';
	echo '</url>';
}?> 
<url><loc>http://dayxam.com</loc><lastmod>2013-05-25</lastmod><changefreq>weekly</changefreq><priority>1</priority></url>
</urlset> 